<head>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
    <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
    <%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
    <script type="text/javascript"
            src="<%=request.getContextPath()%>/script/jquery.validate.js"></script>
    <script type="text/javascript">
        function jumpAction(submitAction) {        	
            var thisURL =document.URL;
            var tmpUPage = thisURL.split("/");
            var thisUPage = tmpUPage[tmpUPage.length-1];
            var thisUPage = thisUPage.substr(0, thisUPage.indexOf(".html"));
            afterSubmitRedirect("dialog", thisUPage+".html", submitAction, "submitAction");
        }
    </script>
</head>
<!-- Menu -->
<jsp:include page="menu.jsp" />

<!--START: Subnav -->
<div class="sub_nav">
    <ul>
        <li>
            <a href="#"><img
                    src="<%=request.getContextPath()%>/images/menu/sub_general_on.gif"
                width="114" height="18" alt="gernal" /> </a>
        </li>
    </ul>
</div>
<!--END: Subnav -->

<!--START: content -->
<div class="content2">
    <div class="insider">
        <div class="corners">
            <div class="corners_top"></div>
            <form id="dialog" method="post">
                <input type="hidden" id="submitAction" name="submitAction" />
                <div class="column1">
                    <div class="col_l">
                        <table width="440" border="0" cellspacing="4"
                               class="formlayout_table">
                            <tr>
                                <th width="188">
                                    <label>
                                        ID:
                                    </label>
                                </th>
                                <td width="240">
                                    ${dialog.refId}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Version:
                                    </label>
                                </th>
                                <td>
                                    ${dialog.version}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                       Name:
                                    </label>
                                </th>
                                <td>
                                    ${dialog.name}
                                </td>
                            </tr> 
                            <tr>
                                <th>
                                    <label>
                                       Vocabulary Name:
                                    </label>
                                </th>
                                <td>
                                    ${dialog.vocabularyname}
                                </td>
                            </tr>                          
                            <tr>
                                <th>
                                    <label>
                                        Display Title:
                                    </label>
                                </th>
                                <td>
                                    ${dialog.displayTitle}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Description:
                                    </label>
                                </th>
                                <td>
                                    ${dialog.description}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Function:
                                    </label>
                                </th>
                                <td>${function}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Region:
                                    </label>
                                </th>
                                <td>${region}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Product Line:
                                    </label>
                                </th>
                                <td>${productType}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Locale:
                                    </label>
                                </th>
                                <td>${locale}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Theme:
                                    </label>
                                </th>
                                <td>${theme}
                                </td>
                            </tr>
                            <tr>
					            <th>
					                <label>
					                    Enable Save:
					                </label>
					            </th>
					            <td>
					                <c:if test="${dialog.enableSave}">
					                    Yes
					                </c:if>
					                <c:if test="${not dialog.enableSave}">
					                    No
					                </c:if>
					            </td>
					        </tr>
                            <tr>
                                <th>
                                    <label>
                                        Summary Report:
                                    </label>
                                </th>
                                <td>
                                    <c:if test="${dialog.summaryReport == true}">Yes</c:if>
                                    <c:if test="${dialog.summaryReport == false}">No</c:if>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Decision Service Name:
                                    </label>
                                </th>
                                <td>${dialog.decisionServiceName}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Decision Service Version:
                                    </label>
                                </th>
                                <td>${dialog.decisionServiceVersion}
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    <label>
                                        Exit Page Url:
                                    </label>
                                </th>
                                <td>${dialog.exitpageurl}
                                </td>
                            </tr>
                        </table>
                    </div>
                    <table width="283" border="0" cellspacing="4"
                           class="formlayout_table fr">
                        <tr>
                            <th width="159">
                                <label>
                                    Sibling ID:
                                </label>
                            </th>
                            <td width="111">${dialog.sibling.refId}
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <label>
                                    Sibling Version:
                                </label>
                            </th>
                            <td>${dialog.sibling.version}
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <label>
                                    Publication Status:
                                </label>
                            </th>
                            <td>
                                ${dialog.publicationStatus.name}
                            </td>
                        </tr>

                        <tr>
                            <th width="159">
                                <label>
                                    Last Modified Date:
                                </label>
                            </th>
                            <td width="111"><fmt:formatDate value="${dialog.modifiedOn}" pattern="dd-MMM-yyyy" /></td>
                        </tr>
                        <tr>
                            <th>
                                <label>
                                    Last Modified By:
                                </label>
                            </th>
                            <td>${dialog.modifiedBy.username}</td>
                        </tr>

                        <tr>
                            <th>
                                <label>
                                    Published Date:
                                </label>
                            </th>
                            <td></td>
                        </tr>
                        <tr>
                            <th>
                                <label>
                                    Published By:
                                </label>
                            </th>
                            <td></td>
                        </tr><tr>
                            <th>
                                <label>
                                    Effective Date:
                                </label>
                            </th>
                            <td></td>
                        </tr><tr>
                            <th>
                                <label>
                                    End Date:
                                </label>
                            </th>
                            <td></td>
                        </tr><tr>
                            <th>
                                <label>
                                    Publish Notes:
                                </label>
                            </th>
                            <td></td>
                        </tr>

                        <tr>
                            <th>
                                <label>
                                    Retired By:
                                </label>
                            </th>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <label>
                                    Retire Date:
                                </label>
                            </th>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <label>
                                    Retire Notes:
                                </label>
                            </th>
                            <td>

                                <textarea name="retiredNote" id="retiredNote" style="width:110px;height:3em;padding:1px 3px;" onkeypress="if(this.value.length >=255) return false;" onpaste="if(this.value.length >=255) return false;"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>
                <ul class="functions1">
                    <li>
                        <a href="#" onclick="jumpAction('SUBMIT');"><img
                                src="<%=request.getContextPath()%>/images/btn/functions1/btn_save.gif"
                            width="122" height="23" class="btn" /> </a>
                    </li>
                    <li>
                        <a href="#" onclick="jumpAction('SUBMIT_AND_EXIT');"><img
                                src="<%=request.getContextPath()%>/images/btn/functions1/btn_save_exit.gif"
                            width="122" height="23" class="btn" /> </a>
                    </li>                   
                    <li>
                        <a href="list.html?from=cancel&checkSearch=list"><img
                                src="<%=request.getContextPath()%>/images/btn/functions1/btn_cancel.gif"
                            alt="" width="122" height="23" class="btn" /> </a>
                    </li>
                </ul>
                <div class="corners_bottom"></div>
            </form>
        </div>
        <div class="message">
            ${message}<br>
            <font color="red">
                ${error}
            </font>
        </div>
    </div>
</div>
<!--END: content -->

<!--START: Footer -->
<div class="footer"></div>
<!--END: Footer -->